<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>武汉同兴一站办企业服务有限公司 管理中心 - 用户添加</title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Public/Admin/Styles/general.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/Styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
    
    <span class="action-span"><a href="#">用户添加</a></span>
    <span class="action-span1"><a href="#">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <span id="search_id" class="action-span1"> 用户添加 </span>
    <div style="clear:both"></div>

</h1>
<div class="main-div">
    
    <form action="{:U('User/add')}" method="post" name="theForm" id="my_form" enctype="multipart/form-data">
        <table width="100%" id="general-table" align="center">

            <tr>
                <td class="label">用户id:</td>
                <td>
                    <input type='text' name='value' maxlength="20" value='' size='27' /> <font color="red">*</font>
                </td>
            </tr>
            <tr>
                <td class="label">微信openID:</td>
                <td>
                    <input type='text' name='value' maxlength="20" value='' size='27' /> <font color="red">*</font>
                </td>
            </tr>
            <tr>
                <td class="label">账号:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' /> <font color="red">*</font>
                </td>
            </tr>
            <tr>
                <td class="label">账户密码:</td>
                <td>
                    <input type='password' name='value' maxlength="20" value='' size='27' /> <font color="red">*</font>
                </td>
            </tr>

            <tr>
                <td class="label">用户状态:</td>
                <td>
                    <input type="radio" name="state" value="0" checked="checked">已封号
                    <input type="radio" name="state" value="1">未实名认证
                    <input type="radio" name="state" value="2">已实名认证
                </td>
            </tr>
            <tr>
                <td class="label">用户名称:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            <tr>
                <td class="label">电话号码:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
           <tr>
                <td class="label">公司名称:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            <tr>
                <td class="label">职位:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
      		<tr>
                <td class="label">邮箱:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            <tr>
                <td class="label">注册时间:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            <tr>
                <td class="label">注册来源:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            <tr>
                <td class="label">邀请码:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            <tr>
                <td class="label">上级id:</td>
                <td>
                    <input type='text' name='sort' maxlength="20" value='' size='27' />
                </td>
            </tr>
            
            <tr>
                <td class="label">备注:</td>
                <td>
                    <input type='text' name='memo' maxlength="20" value='' size='27' />
                </td>
            </tr>

        </table>
        <div class="button-div">
            <input type="button" id="submit" value=" 确定 " />
        </div>
    </form>
    <script type="text/javascript" src="/public/Admin/JS/jquery.min.js"></script>
    <script type="text/javascript" src="/public/Admin/JS/mydate.js"></script>
    <script>

        $('#submit').click(function (){
            data = $('#my_form').serialize();

            $.ajax({
                url:"{:U('User/add')}",
                type:'post',
                data:data,
                success:function(data){
                    $data = JSON.parse(data);
                    console.log($data);

                    if($data.state == 200){
                        alert($data.rel);
                        window.setTimeout("window.location='{:U('User/index')}'",1000);
                    }
                }
            });
        });

    </script>

</div>

<div id="footer">
共执行 3 个查询，用时 0.162348 秒，Gzip 已禁用，内存占用 2.266 MB<br />
版权所有 &copy; 2005-2012 武汉同兴一站办企业服务有限公司，并保留所有权利。</div>

</body>
</html>
